<form method="post" name="frm_SelCity" onSubmit="return false;" action="{$apm.baseurl}rstobi/rstobi">

<div id="select_area02">
<ul>
{foreach from=$Mapping item=v name="prefLoop"}
	<li><a href="#area{$smarty.foreach.prefLoop.iteration}">{$v.TODOUFUKEN_NAME}</a></li>
{/foreach}
</ul>
</div>

{foreach from=$Mapping item=v name="prefLoop"}
<div class="selectdetailbox"  id="area{$smarty.foreach.prefLoop.iteration}">
	<div class="mt20"><p class="name">{$v.TODOUFUKEN_NAME}</p></div>
</div>
<div  class="innerbox01">
<!-- 政令指定都市 -->
{foreach from=$v.SITEITOSI_DATA item=sitei name="siteiLoop"}
	<div  class="innerbox02">
		<div class="area"><p>【{$sitei.SITEITOSI_NAME}】</p></div>
		{foreach from=$sitei.SITEI_SIKU_DATA item=sitei_siku name="siteiSikuLoop"}
			{if $smarty.foreach.siteiSikuLoop.iteration % 3 == 1}
			{if $smarty.foreach.siteiSikuLoop.iteration+3 > $sitei.SITEI_SIKU_DATA|@count && $v.SHIKUCHOUSON_DATA|@count == 0}<ul class="hr_none">
			{else}<ul>{/if}{/if}
{assign var="check" value=""}{* 再チェック判定 *}
{foreach from=$research_data.ReCityCd  key="key" item="resiteicd" name="loopName"}
{if $resiteicd == $sitei_siku.SHIKUCHOUSON_CD}
{assign var="check" value="checked "}
{/if}
{/foreach}
			<li>{* SelFlag == 1の場合、単一選択(radioボタン) *}
				<input name="CityCd[]" type="{if $SelFlag == 1}radio{else}checkbox{/if}" id="selectCity{$sitei_siku.SHIKUCHOUSON_CD}" value="{$sitei_siku.SHIKUCHOUSON_CD}" {if $sitei_siku.REC_CNT == 0}disabled {/if}{$check}/>
				{if $sitei_siku.STATIC_URL != "" && $sitei_siku.REC_CNT != 0}<a href="{$sitei_siku.STATIC_URL}">{$sitei_siku.SHIKUCHOUSON}({$sitei_siku.REC_CNT}件)</a>
				{else}{$sitei_siku.SHIKUCHOUSON}({$sitei_siku.REC_CNT}件)
				{/if}
			</li>
			{if $smarty.foreach.siteiSikuLoop.iteration % 3 == 0 || $smarty.foreach.siteiSikuLoop.last}</ul>{/if}
		{/foreach}
	</div>
	{/foreach}
<!-- /政令指定都市 -->
{if $v.SHIKUCHOUSON_DATA|@count != 0 }
<!-- 市部 -->
	<div  class="innerbox02">
		{if $v.SITEITOSI_DATA|@count != 0 }<div class="area"><p>【市部】</p></div>{/if}
		{foreach from=$v.SHIKUCHOUSON_DATA item=shikuchouson name="sikuLoop"}
			{if $smarty.foreach.sikuLoop.iteration % 3 == 1}
			{if $smarty.foreach.sikuLoop.iteration+3 > $v.SHIKUCHOUSON_DATA|@count }<ul class="hr_none">{else}
			<ul>{/if}{/if}
{assign var="check" value=""}{* 再チェック判定 *}
{foreach from=$research_data.ReCityCd key="key" item="recitycd" name="loopName"}
{if $recitycd == $shikuchouson.SHIKUCHOUSON_CD}
{assign var="check" value="checked "}
{/if}
{/foreach}
			<li>{* SelFlag == 1の場合、単一選択(radioボタン) *}
				<input name="CityCd[]" type="{if $SelFlag == 1}radio{else}checkbox{/if}" id="selectCity{$shikuchouson.SHIKUCHOUSON_CD}" value="{$shikuchouson.SHIKUCHOUSON_CD}" {if $shikuchouson.REC_CNT == 0}disabled {/if}{$check}/>
				{if $shikuchouson.STATIC_URL != "" && $shikuchouson.REC_CNT != 0}<a href="{$shikuchouson.STATIC_URL}">{$shikuchouson.SHIKUCHOUSON}({$shikuchouson.REC_CNT}件)</a>
				{else}{$shikuchouson.SHIKUCHOUSON}({$shikuchouson.REC_CNT}件)
				{/if}
			</li>
			{if $smarty.foreach.sikuLoop.iteration % 3 == 0 || $smarty.foreach.sikuLoop.last}</ul>{/if}
		{/foreach}
	</div>
<!-- /市部 -->
{/if}
</div>
<div class="btn02">
</div>
{/foreach}

<div id="search_render">
	<dl>
		<dt>検索結果表示：</dt>
		<dd>
			<ul>
				<li>
					<label><input name="dispCount" type="radio" id="radio" value="10" checked="checked" />
					10件ずつ</label></li>
				<li>
					<label><input type="radio" name="dispCount" id="radio2" value="20" />
					20件ずつ</label></li>
				<li class="last">
					<label><input type="radio" name="dispCount" id="radio3" value="30" />
					30件ずつ</label></li>
			</ul>
		</dd>
	</dl>
	<p class="btn f_r">
		<input name="imageField" type="image" class="rollImg" id="imageField" src="/common_new/img/btn_search_l.gif" alt="検索" onmouseover="this.src='/common_new/img/btn_search_l_ov.gif'" onmouseout="this.src='/common_new/img/btn_search_l.gif'" onclick="SelSikucyosonKensaku('{$apm.baseurl}rstobi/rstobi')" />
	</p>
</div>
<div id="hiddenval">
{$hiddenTag}
</div>
</form>
